package com.dianrui.moonfire.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.dianrui.moonfire.R;
import com.dianrui.moonfire.bean.BikePointVehicle;

import java.util.List;

public class StationListAdapter extends BaseQuickAdapter<BikePointVehicle,BaseViewHolder> {


    public StationListAdapter(int layoutResId, @Nullable List<BikePointVehicle> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BikePointVehicle bean) {
        helper.setText(R.id.number, bean.number);
        helper.setText(R.id.journey, bean.journey + "km");
        helper.setText(R.id.battery, bean.battery + "%");
        helper.addOnClickListener(R.id.use);
    }
}
